home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
util
/
cdity
/
ModeProSrc.lha
/
Prefs
/
PrintPaletteStr.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-08-22
|
3KB
|
84 lines
#include <stdio.h>
#include "mpp.h"
#include "mppexterns.h"
/*
STRPTR Locales[]=
{
"deutsch.language",
"polski.language",
"svenska.language",
"russian.language",
"español.language",
"türkçe.language",
"português-brasil.language",
"italiano.language",
"dansk.language",
"ÃeÓtina.language",
"Hrvatski.language",
"srpski.language",
"norsk.language",
"íslenska.language",
"français.language",
0
};
void PrintPStrings(void)
{
FILE *fp;
struct Catalog *Catalog;
STRPTR *loc=Locales;
UBYTE fname[256];
APTR locale;
while(*loc)
{
printf("locale %s\n",*loc);
if(locale=OpenLocale(*loc))
{
(Catalog=OpenCatalog(locale,(STRPTR)"modeproprefs.catalog", TAG_DONE));
{
strcpy(fname,"ram:");
strcat(fname,*loc);
strcat(fname,".ct");
printf("%s\n",fname);
if(fp=fopen(fname,"w"))
{
fprintf(fp,"## version $VER: Palette_Requester.catalog 1.0 (98.09.01)\n");
fprintf(fp,"## language %s\n",*loc);
fprintf(fp,"## codeset 0\n");
fprintf(fp,";\nMSG_MENU_PROJECT\n%s\n",GetCatalogStr(Catalog,MSG_M_PROJECT,GetString(MSG_M_PROJECT)));
fprintf(fp,";\nMSG_MENU_LOADPALETTE\n%s\n",GetCatalogStr(Catalog,MSG_PRM_LOADPALETTE,GetString(MSG_PRM_LOADPALETTE)));
fprintf(fp,";\nMSG_MENU_LOADPALETTE_KEY\n%s\n",GetCatalogStr(Catalog,MSG_PRM_LOADPALETTE_KEY,GetString(MSG_PRM_LOADPALETTE_KEY)));
fprintf(fp,";\nMSG_MENU_SAVEPALETTE\n%s\n",GetCatalogStr(Catalog,MSG_PRM_SAVEPALETTE,GetString(MSG_PRM_SAVEPALETTE)));
fprintf(fp,";\nMSG_MENU_SAVEPALETTE_KEY\n%s\n",GetCatalogStr(Catalog,MSG_PRM_SAVEPALETTE_KEY,GetString(MSG_PRM_SAVEPALETTE_KEY)));
fprintf(fp,";\nMSG_MENU_OK\n%s\n",GetCatalogStr(Catalog,MSG_PRM_OK,GetString(MSG_PRM_OK)));
fprintf(fp,";\nMSG_MENU_OK_KEY\n%s\n",GetCatalogStr(Catalog,MSG_PRM_OK_KEY,GetString(MSG_PRM_OK_KEY)));
fprintf(fp,";\nMSG_MENU_CANCEL\n%s\n",GetCatalogStr(Catalog,MSG_PRM_CANCEL,GetString(MSG_PRM_CANCEL)));
fprintf(fp,";\nMSG_MENU_CANCEL_KEY\n%s\n",GetCatalogStr(Catalog,MSG_PRM_CANCEL_KEY,GetString(MSG_PRM_CANCEL_KEY)));
fprintf(fp,";\nMSG_GAD_OK\n%s\n",GetCatalogStr(Catalog,MSG_PRG_OK,GetString(MSG_PRG_OK)));
fprintf(fp,";\nMSG_GAD_CANCEL\n%s\n",GetCatalogStr(Catalog,MSG_PRG_CANCEL,GetString(MSG_PRG_CANCEL)));
fprintf(fp,";\nMSG_GAD_RED\n%s\n",GetCatalogStr(Catalog,MSG_PRG_RED,GetString(MSG_PRG_RED)));
fprintf(fp,";\nMSG_GAD_GREEN\n%s\n",GetCatalogStr(Catalog,MSG_PRG_GREEN,GetString(MSG_PRG_GREEN)));
fprintf(fp,";\nMSG_GAD_BLUE\n%s\n",GetCatalogStr(Catalog,MSG_PRG_BLUE,GetString(MSG_PRG_BLUE)));
fprintf(fp,";\nMSG_GAD_RESET\n%s\n",GetCatalogStr(Catalog,MSG_PRG_RESET,GetString(MSG_PRG_RESET)));
fprintf(fp,";\nMSG_GAD_UNDO\n%s\n",GetCatalogStr(Catalog,MSG_PRG_UNDO,GetString(MSG_PRG_UNDO)));
fprintf(fp,";\nMSG_GAD_COPY\n%s\n",GetCatalogStr(Catalog,MSG_PRG_COPY,GetString(MSG_PRG_COPY)));
fprintf(fp,";\nMSG_GAD_SWAP\n%s\n",GetCatalogStr(Catalog,MSG_PRG_SWAP,GetString(MSG_PRG_SWAP)));
fprintf(fp,";\nMSG_GAD_SPREAD\n%s\n",GetCatalogStr(Catalog,MSG_PRG_SPREAD,GetString(MSG_PRG_SPREAD)));
fprintf(fp,";\nMSG_GAD_PALETTE\n%s\n",GetCatalogStr(Catalog,MSG_PRG_PALETTE,GetString(MSG_PRG_PALETTE)));
fclose(fp);
}
CloseCatalog(Catalog);
}
CloseLocale(locale);
}
loc++;
}
}
*/